﻿using System.Xml;
using UnityEngine;

namespace EditorFrameWork
{
    public class XMLGUILayoutLabel: XMLGUIBase
    {
        public string Text { get; set; }
        public override void ParseXML(XmlElement xmlElement, XMLGUI roolXMLGUI)
        {
            base.ParseXML(xmlElement,roolXMLGUI);
            Text = xmlElement.InnerText;
        }

        public override void OnGUI(Rect position)
        {
            base.OnGUI(position);
            GUILayout.Label(Text);
        }
    }
}